/*Copyright (C) 2009 Careil Baptiste

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef HEADER_DAME_CONSTANTE
#define HEADER_DAME_CONSTANTE

#include "../headers.h"
#include "CSLP/CSLP.h"

typedef enum DAMES_CASEVALUE {
	EMPTY 	= 0,	//case vide
	DAME 	= 1,	//le pion est une dame
	BLANC 	= 2,	//pion blanc
	NOIR 	= 4,	//pion noir
	SRC 	= 8,	//source d'une action
	DEST 	= 16,	//destination d'une action
	CURSOR	= 32	//position du curseur
} DAMES_CASEVALUE;

typedef enum DAMES_TURNSTEP {
	SELECT,
	DESTINATION,
	VALID,
	ERROR_SELECT,
	ERROR_DEST
} DAMES_TURNSTEP;

typedef struct DAMES_POS {
	IPoint select;
	IPoint curseur;
	IPoint *dest;
	unsigned int destLen;
} DAMES_POS;

#define DAMES_ARRAY_SIZE 10	//tableau de jeu de 10x10
#define DAMES_PION_MAX 20	//nb de pion par équipe de 20
#define DAMES_ARRAY_IDENT (DEFAULT_SCREEN_SIZE_X / 2) - ((DAMES_ARRAY_SIZE * 3 + 1) / 2)
#define DAMES_TITRE "Le jeu de dames"

#endif
